<%@ page language="java" pageEncoding="utf-8"%>
<%@ page language="java" import="java.util.*"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/base_1.css" />
<title>G-Search 教育信息搜索网站</title>
<link rel="stylesheet" type="text/css" href="css/DetailInfo.css" />
<link rel="stylesheet" type="text/css" href="css/base.css" />
<script type="text/javascript" src="js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/secloud.js"></script>
</head>



<body>
	<s:include value="../home_top.jsp"/>
  <div id="m">
  	<p id="lg"><a href=""><img src="images/LogoMaker.jpg"  height="80" /></a></p>
	<div id="fm">
    	<s:form namespace="/file" action="searchFile" method="get">
			<s:hidden name="pageSize" value="15"></s:hidden>
			<s:hidden name="pageNow" value="1"></s:hidden>
       	  <input type="text" name="searchInfo" id="kw" maxlength="100" autocomplete="off">
            <span class="btn_wr">
   	      	<input type="submit" value="G搜一下" id="su" class="btn" onmousedown="this.className='btn btn_h'" onmouse="this.className='btn'">
            </span>
        </s:form>
    </div>
   </div>
    <p id="lm"></p>
	  <div style="width: 720px; opacity: 1; 	margin-left:20px;" id="s_mod_topsearch" class="mod-sc s-mod" data-modid="6" att_baidu_fx_move="TANGRAM__b">
        <div class="s-container"> 
        	<table width="100%" border="0" cellpadding="2" cellspacing="0" id="result_1"> 
        	<div class="s-title" id="s_mod_topsearch_titleBar" style=""> 
                <span class="s-topsearch-title">
                	<s:property value="item.fileName"/>
                	<s:if test="item.state == 2">
						<span style="color:red">禁止显示文件</span>
					</s:if>
                </span>
            </div>
            <div class="s-content" id="s_mod_topsearch_content" style="">
            	<ul class="s-topsearch-box clearfix" id="s_topsearch">
                <tr>
          <td>中文名称：  <s:property value="item.fileNameCh"/> </td>
        </tr>
        <tr>
          <td>发布时间: <s:date format="yyyy" name="item.publishTime"/></td>
        </tr>
        <tr>
          <td>发布机构: <s:property value="item.publishOrgan"/></td>
        </tr>
        <tr>
          <td>发布机构（中文）: <s:property value="item.publishOrganCh"/></td>
        </tr>
        <tr>
          <td><p>主要内容:</p>
		  <p><s:property value="item.mainContent"/></p></td>
        </tr>
         <tr>
          <td><p>主要内容(中文):</p>
		  <p><s:property value="item.mainContentCh"/></p>
		  </td>
        </tr>
        <tr>
          <td>
            <table width="100%" border="0">
              <tr>
              	<li class="s-topsearch-item">
              	<s:if test="isSUrl">
              	
              		<a href="<s:property value="item.dataSource"/>" id="down">资料来源</a>
              	</s:if>
              	<s:else>
              	<p>资料来源:<s:property value="item.dateSource"/></p>
              	</s:else>
         
              		
              	</li>
              	<s:bean var="user_auth_2" name="com.prp.struts.bean.UserAuth">
					<s:param name="username" value="#session.username"/>
				</s:bean>
				
				<s:if test="#user_auth_2.is_FileAdmin">
              	<li class="s-topsearch-item">
                	<a id="down" href="<s:url action="editpage" namespace="/file">
			          	<s:param name="itemID" value="itemID"></s:param>
			          	<s:param name="next">show</s:param>
			          	</s:url>"
			          >修改</a>
                </li>
                </s:if>
                
                <s:if test="#session.username == null">
                	<li class="s-topsearch-item">
                	<p>下载资源需要<a id="down" href="user/loginPage.action">登录</a></p>
                	</li>
                </s:if>
                <s:else>
                <li class="s-topsearch-item">
                	<a target="_blank" id="down" href="<s:url action="download" namespace="/file">
          				<s:param name="itemId" value="itemID"></s:param>
          				</s:url>"
          			>下载</a>
          			
                </li>
                </s:else>
                <s:if test="#user_auth_2.is_FileAdmin">
                <li class="s-topsearch-item">
                <s:form method="get" action="switchItemStat" namespace="/file" id="id_item_stat">
          				<s:hidden name="itemID"/>
          				显示状态:<s:select list="#{'1':'正常','2':'禁止显示' }" name="new_stat"
          				onchange="item_stat_onChanged()"></s:select>
          			</s:form>
          		</li>
          		</s:if>
              </tr>
            </table></td>
        </tr>
                </ul>
        	</div>
            </table>
          </div>
    </div>
</body>
</html>
